package cn.powertime.evaluation.service.impl;

import cn.powertime.evaluation.entity.ZcPolicy;
import cn.powertime.evaluation.mapper.ZcPolicyMapper;
import cn.powertime.evaluation.service.ZcPolicyService;
import cn.powertime.evaluation.vo.ZcRespIndexListVo;
import cn.powertime.evaluation.vo.ZcRespListVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 政策宣传表 服务实现类
 * </p>
 *
 * @author liqi
 * @since 2019-09-23
 */
@Service
public class ZcPolicyServiceImpl extends ServiceImpl<ZcPolicyMapper, ZcPolicy> implements ZcPolicyService {

    @Autowired
    private ZcPolicyMapper zcPolicyMapper;

    @Override
    public List<ZcRespIndexListVo> zcList() {
        return zcPolicyMapper.zcList();
    }

    @Override
    public IPage<ZcRespListVo> list(Page<ZcPolicy> page) {
        return zcPolicyMapper.list(page);
    }
}
